package com.qys.livesMall.system.modal.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户钱包表(UserWallet)表实体类
 *
 * @author makejava
 * @since 2023-07-08 10:04:55
 */
@Data
public class UserWalletVO {

    @JSONField(serializeUsing = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "钱包地址")
    private String walletAddress;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "钱包ID")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long walletId;

    @Schema(description = "钱包网络")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private String network;

    @Schema(description = "钱包状态（0不可用，1可用）")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Integer walletState;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime updateTime;

}

